﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using OrmAuto;
using System.Web.DynamicData;

public partial class GestDB_Stati : System.Web.UI.Page
{
		protected void Page_Init(object sender, EventArgs e)
		{
		
		  var tabella = Request.QueryString["table"]; 
		  this.EntityDataSource1.ContextType =typeof(DBEntities) ;
		  this.EntityDataSource1.ConnectionString ="name=DBEntities";  
		  this.EntityDataSource1.DefaultContainerName  = "DBEntities"    ;
		  this.EntityDataSource1.EntitySetName =tabella ;  
		  
		  //this.EntityDataSource1.Include = "Merceologie";

				DynamicDataManager1.AutoLoadForeignKeys = true;		    
				DynamicDataManager1.RegisterControl(GridView1);
				 
		}//fM

    protected void Page_Load(object sender, EventArgs e)
    {
    }//fM
    
    
}//fC
